package com.zyy.mediator;

/**
 * @Description: 类描述
 * @Author: zyy
 * @Date: 2023/08/05 16:23
 */
public class Client {
    public static void main(String[] args) {
        MediatorStructure mediatorStructure = new MediatorStructure();

        HouseOwner houseOwner = new HouseOwner("张三", mediatorStructure);

        Tenant tenant = new Tenant("李四", mediatorStructure);

        mediatorStructure.setHouseOwner(houseOwner);
        mediatorStructure.setTenant(tenant);

        tenant.constact("我需要租一间房子");

        houseOwner.constact("我有一套房子需要出租");
    }
}
